.class Limoblife/yogamoment/lite/PlayControl$5;
.super Ljava/lang/Object;
.source "PlayControl.java"

# interfaces
.implements Landroid/widget/CompoundButton$OnCheckedChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Limoblife/yogamoment/lite/PlayControl;->initAllItem()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field conItem:Limoblife/yogamoment/lite/PlayControl$Item;

.field id:I

.field final synthetic this$0:Limoblife/yogamoment/lite/PlayControl;


# direct methods
.method constructor <init>(Limoblife/yogamoment/lite/PlayControl;Limoblife/yogamoment/lite/PlayControl$Item;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    .line 402
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 404
    iput-object p2, p0, Limoblife/yogamoment/lite/PlayControl$5;->conItem:Limoblife/yogamoment/lite/PlayControl$Item;

    .line 405
    iget v0, p1, Limoblife/yogamoment/lite/PlayControl;->i:I

    iput v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->id:I

    return-void
.end method


# virtual methods
.method public onCheckedChanged(Landroid/widget/CompoundButton;Z)V
    .locals 4
    .parameter "buttonView"
    .parameter "isChecked"

    .prologue
    const/4 v3, 0x0

    const-string v2, "d"

    .line 410
    if-eqz p2, :cond_3

    .line 412
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->titleTextView:Landroid/widget/TextView;

    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl$5;->conItem:Limoblife/yogamoment/lite/PlayControl$Item;

    iget-object v1, v1, Limoblife/yogamoment/lite/PlayControl$Item;->titleView:Landroid/widget/TextView;

    .line 413
    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    .line 412
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 416
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    #getter for: Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;
    invoke-static {v0}, Limoblife/yogamoment/lite/PlayControl;->access$3(Limoblife/yogamoment/lite/PlayControl;)Landroid/widget/CompoundButton;

    move-result-object v0

    if-nez v0, :cond_1

    .line 418
    const-string v0, "d"

    const-string v0, "\u7b2c\u4e00\u6b21\u64ad\u653e"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 419
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    #setter for: Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;
    invoke-static {v0, p1}, Limoblife/yogamoment/lite/PlayControl;->access$4(Limoblife/yogamoment/lite/PlayControl;Landroid/widget/CompoundButton;)V

    .line 420
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl$5;->conItem:Limoblife/yogamoment/lite/PlayControl$Item;

    iget v1, v1, Limoblife/yogamoment/lite/PlayControl$Item;->musicID:I

    #calls: Limoblife/yogamoment/lite/PlayControl;->setCurrentMediaPlayer(I)V
    invoke-static {v0, v1}, Limoblife/yogamoment/lite/PlayControl;->access$5(Limoblife/yogamoment/lite/PlayControl;I)V

    .line 421
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    .line 422
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v0}, Limoblife/yogamoment/lite/MainActivity;->updateMusicPross()V

    .line 440
    :goto_0
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget v1, p0, Limoblife/yogamoment/lite/PlayControl$5;->id:I

    iput v1, v0, Limoblife/yogamoment/lite/PlayControl;->currentIndex:I

    .line 442
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    if-nez v0, :cond_0

    .line 443
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 456
    :cond_0
    :goto_1
    return-void

    .line 424
    :cond_1
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    #getter for: Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;
    invoke-static {v0}, Limoblife/yogamoment/lite/PlayControl;->access$3(Limoblife/yogamoment/lite/PlayControl;)Landroid/widget/CompoundButton;

    move-result-object v0

    if-ne v0, p1, :cond_2

    .line 426
    const-string v0, "d"

    const-string v0, "\u64ad\u653e \u4e0a\u4e00\u6b21\u6682\u505c"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 428
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    goto :goto_0

    .line 432
    :cond_2
    const-string v0, "d"

    const-string v0, "\u5207\u6362\u66f2\u76ee"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 433
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    #getter for: Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;
    invoke-static {v0}, Limoblife/yogamoment/lite/PlayControl;->access$3(Limoblife/yogamoment/lite/PlayControl;)Landroid/widget/CompoundButton;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/CompoundButton;->setChecked(Z)V

    .line 434
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v1, p0, Limoblife/yogamoment/lite/PlayControl$5;->conItem:Limoblife/yogamoment/lite/PlayControl$Item;

    iget v1, v1, Limoblife/yogamoment/lite/PlayControl$Item;->musicID:I

    #calls: Limoblife/yogamoment/lite/PlayControl;->setCurrentMediaPlayer(I)V
    invoke-static {v0, v1}, Limoblife/yogamoment/lite/PlayControl;->access$5(Limoblife/yogamoment/lite/PlayControl;I)V

    .line 435
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    #setter for: Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;
    invoke-static {v0, p1}, Limoblife/yogamoment/lite/PlayControl;->access$4(Limoblife/yogamoment/lite/PlayControl;Landroid/widget/CompoundButton;)V

    .line 436
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    .line 437
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->mainActivity:Limoblife/yogamoment/lite/MainActivity;

    invoke-virtual {v0}, Limoblife/yogamoment/lite/MainActivity;->updateMusicPross()V

    goto :goto_0

    .line 448
    :cond_3
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    #getter for: Limoblife/yogamoment/lite/PlayControl;->prevCheckBox:Landroid/widget/CompoundButton;
    invoke-static {v0}, Limoblife/yogamoment/lite/PlayControl;->access$3(Limoblife/yogamoment/lite/PlayControl;)Landroid/widget/CompoundButton;

    move-result-object v0

    if-ne v0, p1, :cond_4

    .line 449
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->pause()V

    .line 451
    :cond_4
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 452
    iget-object v0, p0, Limoblife/yogamoment/lite/PlayControl$5;->this$0:Limoblife/yogamoment/lite/PlayControl;

    iget-object v0, v0, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v0, v3}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_1
.end method
